<?PHP
session_start();
include_once "ini.php";
$id_cam = $_POST['id_cam'];
$message = $_POST['comment'];
$message = addslashes($message);
dbconnect();

$query = "INSERT into livre_dor VALUES ('', '".$_SESSION['login']."', '".$id_cam."', '".$message."')";
$result = mysql_query($query);
if (!$result)
{
    echo "SQL error : ", $query;
    exit ;
}
else
{
   echo "save comment done.";
}

dbclose();
?>
